package bma.common.langutil.log;

import java.util.Date;

import junit.framework.TestCase;
import bma.common.langutil.log.acclog.AccessLog;
import bma.common.langutil.log.acclog.AccessLogFactorySimple;

public class AccessLogTC extends TestCase {

	final org.slf4j.Logger logger = org.slf4j.LoggerFactory
			.getLogger(AccessLogTC.class);

	public void print(AccessLog log) {
		log.debug("test1", 1, 2, 3, 4);
		log.info("test2");
		log.warn("test3", "string", 123, true, new Date(), this);
	}

	public void testSimple() throws Exception {
		AccessLogFactorySimple fac = new AccessLogFactorySimple(logger);
		for (int i = 0; i < 10; i++) {
			print(fac.create());
		}
	}

}
